package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * 文件输出流操作
 */
public class FileOutPutDemo {
    public static void main(String[] args) throws Exception {
        /*
        FileOutputStream("");
        FileOutputStream(File file);
         */
        FileOutputStream fos =
                new FileOutputStream("./demo.txt");
        fos.write(255);// 写入一个字节
        fos.write(256);

        fos.close();
        System.out.println("写入完毕");
    }
}
